package com.czh.cloud.controller;

import cn.hutool.core.date.DateUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class TestController {

    @Value("${mylabel}")
    private  String myLabel;

    @GetMapping("/label")
    public String  test(){
        System.out.println("test git commond");
        System.out.println("test git commond3");
        System.out.println("test git commond2");
        System.out.println("test git commond4");
        System.out.println("test git commond7");
        System.out.println("test git commond5");
        System.out.println("test git commond6");
        System.out.println("test git commond67777");
        System.out.println("test git commond67777");
        System.out.println("test git commond67777");
        System.out.println("test git commond67777");
        System.out.println("test git 44444");
        System.out.println("test git 88888");
        return myLabel;
    }

    public static void main(String[] args) {
        System.out.println(DateUtil.ageOfNow("1995-08-24"));
    }
}
